﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NAnt.SVN.Tasks
{
    public interface IPropertiesManager
    {
        /// <summary>
        /// Set a property linked with SVN NAnt tasks
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        void SetSVNProperty(string key, object value);

        /// <summary>
        /// Get a property linked with SVN NAnt tasks
        /// </summary>
        /// <param name="key"></param>
        string GetSVNProperty(string key);

        /// <summary>
        /// Set a property
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        void SetProperty(string key, object value);

        /// <summary>
        /// Get a property
        /// </summary>
        /// <param name="key"></param>
        string GetProperty(string key);

        /// <summary>
        /// Check if a property linked with SVN NAnt tasks
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        bool IsSVNProperty(string key);

        /// <summary>
        /// Check if a property exsist
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        bool IsProperty(string key);

        /// <summary>
        /// List SVN tasks as a dictionary
        /// </summary>
        /// <returns></returns>
        Dictionary<string, string> ListSVNProperties();
    }
}
